<script>
import MyTransition from "./MyTransition.vue";

export default {
  name: "App",
  components: {MyTransition},
  data(){
    return {
      isShow:true
    }
  }
}
</script>

<template>
  <div>
    <button @click="isShow=!isShow">点击</button>
    <my-transition>
      <div v-if="isShow">11111</div>
    </my-transition>
  </div>
</template>

<style scoped>

</style>